package com.warm.pump.module.monitor.bean.po.gen;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class LogMailHisExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitOffset = -1;

    public LogMailHisExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitOffset(int limitOffset) {
        this.limitOffset=limitOffset;
    }

    public int getLimitOffset() {
        return limitOffset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }



        public Criteria andOidIsNull() {
            addCriterion("oid is null");
            return (Criteria) this;
        }

        public Criteria andOidIsNotNull() {
            addCriterion("oid is not null");
            return (Criteria) this;
        }

        public Criteria andOidEqualTo(Long value) {
            addCriterion("oid =", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidNotEqualTo(Long value) {
            addCriterion("oid <>", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThan(Long value) {
            addCriterion("oid >", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThanOrEqualTo(Long value) {
            addCriterion("oid >=", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThan(Long value) {
            addCriterion("oid <", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThanOrEqualTo(Long value) {
            addCriterion("oid <=", value, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidIn(List<Long> values) {
            addCriterion("oid in", values, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidNotIn(List<Long> values) {
            addCriterion("oid not in", values, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidBetween(Long value1, Long value2) {
            addCriterion("oid between", value1, value2, "Oid");
            return (Criteria) this;
        }

        public Criteria andOidNotBetween(Long value1, Long value2) {
            addCriterion("oid not between", value1, value2, "Oid");
            return (Criteria) this;
        }
        public Criteria andEmailFromIsNull() {
            addCriterion("email_from is null");
            return (Criteria) this;
        }

        public Criteria andEmailFromIsNotNull() {
            addCriterion("email_from is not null");
            return (Criteria) this;
        }

        public Criteria andEmailFromEqualTo(String value) {
            addCriterion("email_from =", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromNotEqualTo(String value) {
            addCriterion("email_from <>", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromGreaterThan(String value) {
            addCriterion("email_from >", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromGreaterThanOrEqualTo(String value) {
            addCriterion("email_from >=", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromLessThan(String value) {
            addCriterion("email_from <", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromLessThanOrEqualTo(String value) {
            addCriterion("email_from <=", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromLike(String value) {
            addCriterion("email_from like", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromNotLike(String value) {
            addCriterion("email_from not like", value, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromIn(List<String> values) {
            addCriterion("email_from in", values, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromNotIn(List<String> values) {
            addCriterion("email_from not in", values, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromBetween(String value1, String value2) {
            addCriterion("email_from between", value1, value2, "EmailFrom");
            return (Criteria) this;
        }

        public Criteria andEmailFromNotBetween(String value1, String value2) {
            addCriterion("email_from not between", value1, value2, "EmailFrom");
            return (Criteria) this;
        }
        public Criteria andEmailToIsNull() {
            addCriterion("email_to is null");
            return (Criteria) this;
        }

        public Criteria andEmailToIsNotNull() {
            addCriterion("email_to is not null");
            return (Criteria) this;
        }

        public Criteria andEmailToEqualTo(String value) {
            addCriterion("email_to =", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToNotEqualTo(String value) {
            addCriterion("email_to <>", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToGreaterThan(String value) {
            addCriterion("email_to >", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToGreaterThanOrEqualTo(String value) {
            addCriterion("email_to >=", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToLessThan(String value) {
            addCriterion("email_to <", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToLessThanOrEqualTo(String value) {
            addCriterion("email_to <=", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToLike(String value) {
            addCriterion("email_to like", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToNotLike(String value) {
            addCriterion("email_to not like", value, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToIn(List<String> values) {
            addCriterion("email_to in", values, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToNotIn(List<String> values) {
            addCriterion("email_to not in", values, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToBetween(String value1, String value2) {
            addCriterion("email_to between", value1, value2, "EmailTo");
            return (Criteria) this;
        }

        public Criteria andEmailToNotBetween(String value1, String value2) {
            addCriterion("email_to not between", value1, value2, "EmailTo");
            return (Criteria) this;
        }
        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "Type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "Type");
            return (Criteria) this;
        }
        public Criteria andSubjectIsNull() {
            addCriterion("subject is null");
            return (Criteria) this;
        }

        public Criteria andSubjectIsNotNull() {
            addCriterion("subject is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectEqualTo(String value) {
            addCriterion("subject =", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectNotEqualTo(String value) {
            addCriterion("subject <>", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectGreaterThan(String value) {
            addCriterion("subject >", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectGreaterThanOrEqualTo(String value) {
            addCriterion("subject >=", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectLessThan(String value) {
            addCriterion("subject <", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectLessThanOrEqualTo(String value) {
            addCriterion("subject <=", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectLike(String value) {
            addCriterion("subject like", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectNotLike(String value) {
            addCriterion("subject not like", value, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectIn(List<String> values) {
            addCriterion("subject in", values, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectNotIn(List<String> values) {
            addCriterion("subject not in", values, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectBetween(String value1, String value2) {
            addCriterion("subject between", value1, value2, "Subject");
            return (Criteria) this;
        }

        public Criteria andSubjectNotBetween(String value1, String value2) {
            addCriterion("subject not between", value1, value2, "Subject");
            return (Criteria) this;
        }
        public Criteria andEmailTextIsNull() {
            addCriterion("email_text is null");
            return (Criteria) this;
        }

        public Criteria andEmailTextIsNotNull() {
            addCriterion("email_text is not null");
            return (Criteria) this;
        }

        public Criteria andEmailTextEqualTo(String value) {
            addCriterion("email_text =", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextNotEqualTo(String value) {
            addCriterion("email_text <>", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextGreaterThan(String value) {
            addCriterion("email_text >", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextGreaterThanOrEqualTo(String value) {
            addCriterion("email_text >=", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextLessThan(String value) {
            addCriterion("email_text <", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextLessThanOrEqualTo(String value) {
            addCriterion("email_text <=", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextLike(String value) {
            addCriterion("email_text like", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextNotLike(String value) {
            addCriterion("email_text not like", value, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextIn(List<String> values) {
            addCriterion("email_text in", values, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextNotIn(List<String> values) {
            addCriterion("email_text not in", values, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextBetween(String value1, String value2) {
            addCriterion("email_text between", value1, value2, "EmailText");
            return (Criteria) this;
        }

        public Criteria andEmailTextNotBetween(String value1, String value2) {
            addCriterion("email_text not between", value1, value2, "EmailText");
            return (Criteria) this;
        }
        public Criteria andSendTimeIsNull() {
            addCriterion("send_time is null");
            return (Criteria) this;
        }

        public Criteria andSendTimeIsNotNull() {
            addCriterion("send_time is not null");
            return (Criteria) this;
        }

        public Criteria andSendTimeEqualTo(Date value) {
            addCriterion("send_time =", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotEqualTo(Date value) {
            addCriterion("send_time <>", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThan(Date value) {
            addCriterion("send_time >", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("send_time >=", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThan(Date value) {
            addCriterion("send_time <", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThanOrEqualTo(Date value) {
            addCriterion("send_time <=", value, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeIn(List<Date> values) {
            addCriterion("send_time in", values, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotIn(List<Date> values) {
            addCriterion("send_time not in", values, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeBetween(Date value1, Date value2) {
            addCriterion("send_time between", value1, value2, "SendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotBetween(Date value1, Date value2) {
            addCriterion("send_time not between", value1, value2, "SendTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
